#pragma once
#include <pbase.h>
#include <dsCvt.h>
// time stamp and date init
int tmSdInit(const char *setRtcFile, const char *setZonefile);

int tmSdSetUtc(int8_t setUtc);
int8_t tmSdGetUtc();

int tmSdSetStamp(uint64_t setStampSec);
// this func will not modify time zone
int tmSdSetDate(tmdateType *setTmDate);

uint64_t tmSdGetStampSec();
uint64_t tmSdGetStampMs();
uint64_t tmSdGetStampUs();
uint64_t tmSdGetStampNs();
tmdateType tmSdGetDate();
